# 利用模型表单，实现增删查改4个也功能页面
from django import forms
from .models import Course,UploadImgModel
from django.views.generic.edit import CreateView,UpdateView,DeleteView

class CourseForm(forms.ModelForm):

    class Meta:
        model = Course
        fields = "__all__"

class UploadForm(forms.Form):
    head_img = forms.ImageField()

class UploaderImageForm(forms.ModelForm):
    class Meta:
        model=UploadImgModel
        fields='__all__'
